import Component from 'utils/js/jquery-component';
import createClass from 'utils/js/create-class';
import s from './index.css';
import html from './index.html';

export default createClass(Component, {
  __name__: 'Example',
  locals: s,

  __init__: function (el) {
    this.$wrap = this.$(el || document.body);
    this.$html = this.$(this.rh(html));
    this.$html.appendTo(this.$wrap);
  },

  method1: function () {
    console.log('我是方法1');
  },

  method2: function () {
    console.log('我是方法2');
  },
});
